import BaseEntity from './BaseEntity'
import QuestionItem from './QuestionItem'

class Question extends BaseEntity {
  constructor ({
    id = '',
    content = '',
    items = []
  }) {
    super({id})

    this.content = content
    this.items = items.map(v => new QuestionItem(v))
  }
}

export default Question
